import service from '../network/service'

// 用户登录接口
export const userLogin = (data) => {
    return service({
        url: '/login/account',
        method: 'post',
        data: data
    })
};

// 获取验证码
export const getSmsCode = (params) => {
    return service({
        url: '/sms/byLogin',
        method: 'post',
        params: params
    })
};

// 检测验证码并登录
export const SmsCodeExist = (data) => {
    return service({
        url: '/login/mobile',
        method: 'post',
        data: data
    })
};

// 获取当前数据库所有表
export const getColumn = (params) => {
    return service({
        url: '/autoCode/getColumn',
        method: 'get',
        params: params
    })
};